/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. 
 */
package com.icinfo.cloud.provider.punish.controller;

import com.icinfo.cloud.provider.common.page.PageResponse;
import com.icinfo.cloud.provider.punish.config.dto.PhraseQueryPageDto;
import com.icinfo.cloud.provider.punish.config.vo.PhraseVo;
import com.icinfo.cloud.provider.punish.service.IConfigCasePhrasesService;
import com.icinfo.framework.common.web.Result;
import com.icinfo.framework.core.web.BaseController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述: 常用短语表 case_approval_phrases 对应的Controller类.<br>
 *
 * @author 程亚运
 * @date 2022年02月16日
 */
@RestController
@RequestMapping("/app/phrase")
public class ConfigCasePhrasesController extends BaseController {
    /**
     * 日志记录器
     */
    private static final Logger logger = LoggerFactory.getLogger(ConfigCasePhrasesController.class);

    @Autowired
    private IConfigCasePhrasesService caseApprovalPhrasesService;

    /**
     * 查询常用短语列表
     * @param
     * @return
     */
    @PostMapping("/getPhraseList")
    public Result<PageResponse<PhraseVo>> getPhraseList(@Validated @RequestBody PhraseQueryPageDto phraseQueryPageDto){
        return caseApprovalPhrasesService.getList(phraseQueryPageDto);
    }

}